/**
 * 
 */
package com.java.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.entity.Payment;
import com.java.mapper.GoodMapper;
import com.java.mapper.PaymentMapper;
import com.java.service.PaymentService;

/**
* @author Kidney
* 创建时间：2019年2月24日 下午5:40:17
* Description:
*/
/**
 * @author KIDNEY
 *
 */
@Service("PaymentServiceImpl")
public class PaymentServiceImpl implements PaymentService {

	@Autowired
	private PaymentMapper pm;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.java.service.PaymentService#insertSelective(com.java.entity.Payment)
	 */
	@Override
	public int insertSelective(Payment record) {
		// TODO Auto-generated method stub
		return pm.insertSelective(record);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.java.service.PaymentService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public Payment selectByPrimaryKey(Integer paymentId) {
		// TODO Auto-generated method stub
		return pm.selectByPrimaryKey(paymentId);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.java.service.PaymentService#updateByPrimaryKeySelective(com.java.
	 * entity.Payment)
	 */
	@Override
	public int updateByPrimaryKeySelective(Payment record) {
		// TODO Auto-generated method stub
		return pm.updateByPrimaryKeySelective(record);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.java.service.PaymentService#selectByUser(java.lang.Integer)
	 */
	@Override
	public List<Payment> selectByUser(Integer userId) {
		// TODO Auto-generated method stub
		return pm.selectByUser(userId);
	}

	/* (non-Javadoc)
	 * @see com.java.service.PaymentService#selectMaxId()
	 */
	@Override
	public int selectMaxId() {
		// TODO Auto-generated method stub
		return pm.selectMaxId();
	}

}
